package com.Wlongtao.eBusiness.services;

import com.Wlongtao.eBusiness.dao.GameRepository;
import com.Wlongtao.eBusiness.entity.Game;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GameService {
    @Autowired
    GameRepository gameRepository;

    public Game save(Game game){
        return gameRepository.save(game);
    }
    public
    List<Game> getAll(){
        return gameRepository.findAll();
    }


}
